/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.VipServiceTicket;
import com.sasis.dao.VipServiceTicketDao;
import com.sasis.service.VipServiceTicketManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class VipServiceTicketManagerImpl extends BaseManager implements VipServiceTicketManager {
    private VipServiceTicketDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setVipServiceTicketDao(VipServiceTicketDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.VipServiceTicketManager#getVipServiceTickets(com.sasis.model.VipServiceTicket)
     */
    public List getVipServiceTickets(final VipServiceTicket vipServiceTicket) {
        return dao.getVipServiceTickets(vipServiceTicket);
    }

    /**
     * @see com.sasis.service.VipServiceTicketManager#getVipServiceTicket(String id)
     */
    public VipServiceTicket getVipServiceTicket(final String id) {
        return dao.getVipServiceTicket(new Integer(id));
    }

    /**
     * @see com.sasis.service.VipServiceTicketManager#saveVipServiceTicket(VipServiceTicket vipServiceTicket)
     */
    public int saveVipServiceTicket(VipServiceTicket vipServiceTicket) {
        return dao.saveVipServiceTicket(vipServiceTicket); 
    }

    /**
     * @see com.sasis.service.VipServiceTicketManager#removeVipServiceTicket(String id)
     */
    public void removeVipServiceTicket(VipServiceTicket vipServiceTicket) {
        dao.removeVipServiceTicket( vipServiceTicket);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
